﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace CountJobTags{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application {
        /// <summary>Constructor for the application</summary>
        public App() {
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
        }

        void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {
            Exception ex = (Exception)e.ExceptionObject;
            MessageBox.Show(ex.Message + "\n\n" + ex.StackTrace, "Sorry! Unhandled Exception", MessageBoxButton.OK, MessageBoxImage.Error);
        }
    }
}
